package ejercicio4;


public class Consumidor extends Thread{
	
	private Monitor buffer;
	
	public Consumidor(Monitor buffer) {
		super();
		this.buffer = buffer;
	}
	
	@Override
	public void run(){
	while(true){
		this.suspend();	
		buffer.consumir(this.getId(),this);
			
	}
	}

}
